package com.example.demo1108.demo1;

public class ComputerFactory {
    public Computer createComputer(String name){
        if (name.equals("神州笔记本")){
            return new ShenZhou();
        }else if (name.equals("红米笔记本")){
            return new RedMiBook();
        }
        return null;
    }
}
